$(function () {
    var username = '';
    var password = '';
    $('#login').click(function () {
        username = $('#username').val();
        password = $('#password').val();
        api.sys.simple_login({username: username, password: password, is_live:true}).then(function (data) {
            if (data.success) {
                client_storage('sessionid', data.result.sessionid);
                location.href = './home.html'
            }
        })
    })
});